set term png
set xtics 1
set output "timetosolve.png"
set xlabel "Number of computers"
set ylabel "Time(mins)"
set title "Time for exact solution - star network"
plot "vi.txt" using 1:5 w linespoints title "VI-ADD", "vic.txt" using 1:5 w linespoints title "VI-ADD(CONC)", \
	"spi10.txt" using 1:5 w linespoints title "MPI-ADD(10)", \
	"spi5.txt" using 1:5 w linespoints title "MPI-ADD(5)", \
	"spi3.txt" using 1:5 w linespoints title "MPI-ADD(3)", \
	"cut200.txt" using 1:5 w linespoints title "C = 200",\
	"cutdot1e5.txt" using 1:5 w linespoints title "C = 10000", \
	"cut1e5.txt" using 1:5 w linespoints title "C = 1e5",\
	"cut5e5.txt" using 1:5 w linespoints title "C = 5e5", \
	"viaadd.txt" using 1:5 w linespoints title "VI-AADD", \
	"vicaadd.txt" using 1:5 w linespoints title "VIC-AADD"
	#"maxd.txt" using 1:5 w linespoints title "C = V_H"